package com.define.ssh.dao.impl;

import org.springframework.stereotype.Repository;

import com.define.ssh.dao.UserFuncDao;
import com.define.ssh.model.UserFunc;

@Repository("userFuncDaoImpl")
public class UserFuncDaoImpl extends BaseDaoImpl<UserFunc, Long> implements
		UserFuncDao {

	/***
	 * 删除该角色 对应的权限
	 * 
	 * @param role_id
	 */
	@Override
	public void delUserFuncByUserId(Long user_id) {
		String hql = "delete UserFunc uf where 1=1 ";
		hql += " and uf.user.id='" + user_id + "'";
		getSession().createQuery(hql).executeUpdate();
	}
}
